Creating a Conditional Branching Task

Conditional Branching tasks can be used to define conditional rules for tasks that can test certain conditions and perform actions based on whether or which conditions are met.

Before you start

You can only create tasks within a workflow template, or a request. You cannot create a task independent of a request or workflow.

You must have Create Request selected in the Requests tab of your Workflow Management security role.

The vFire Workflow Polling Service must be running on the vFire server to execute any workflow-related activations.

 

  1. Search for the Request Details window, if it is not already on screen.
  2. Select the Update Dependencies explorer option on the Request Details window, or the button from the toolbar. The Task Dependencies window appears with icons for task entity types displayed below the toolbar.
  3. If the workflow template you have used to create the request already has tasks defined in it, you will see these tasks here. You can open them and change their details such as dates, assignment, or expenses. You can add new tasks or delete them from the current request without affecting the template.

  4. To add a new conditional branching task, choose the Conditional Branching task icon from the palette, and drag it to the window. Alternatively, right-click in the window, and from the menu that is displayed, select New and then the Conditional Branching task entity type.
  5. Link the task to the previous task in the workflow.
  6. To open a task and add or update the details, double-click on the icon in the diagram. The Task Details window is displayed.
  7. If needed, take action on the task in order to edit the details.
  8. Expand the Task Information section to complete the common task fields.
  9. Expand the Rules section. All the rules that have been added to the current task are displayed on the Rules List browse table. The currently selected rule is shown in a preview pane (Current Rule). Click on one of the rules to see a summary of the rule in the Rule Setup section below the rules list. This section displays the parent task(s), conditions, actions and tasks associated with the current rule.
  10. Click New Rule to add a rule. Complete the details in the Rule Setup section.
  11. From Task This panel displays the parent task(s) for the current task. If there is more than one, select one containing the fields you wish to use as conditions for the rule. If the conditional branching task has only one parent, it is selected by default.
    If Available Conditions This panel lists all of the current conditions. As you are creating a task, click Create Condition. In the Task/Approval Available Conditions window, define your dependency rules.
    Then Available Actions This panel displays the actions that will be taken if the conditions are met. To define an action for a rule, in the panel click Create Activation. In the Task/Approval Available Actions window, define your actions.
    On Task

    This panel displays a list of tasks that are dependent on the current task. For each rule-action combination, select the task to be executed.

    1. Click in the relevant row of the If Available Conditions panel to select the required condition.
    2. Click in the relevant row of the Then Available Actions panel to select the required action.
    3. Click in the relevant row of the On Tasks panel to select the task to execute when a condition or several conditions are met.
    4. If the conditional branching task has no dependent task, no actions will be processed.

  12. Click Add Rule. The rule is displayed in the Rules List browse table.
  13. The rules are shown in the order of priority. The first (topmost) rule will be tested, and then the second, and so on. You can change the order of the rules by selecting a rule and clicking the Move Up and Move Down buttons.
  14. Click Save when done.